package com.jiawang.core.handler;

import com.jiawang.core.enums.HandlerEnum;

/**
 * @author LiJiaWang
 * 创建时间: 10:32
 * 项目的名字: jio_writer_tomcat
 * <p style="color:#33CCFF">基础处理器</p>
 */
public abstract class AbstractBaseHandler implements Handler {


    /**
     * 处理器
     */
    private Handler handler;

    @Override
    public void setHandler(Handler handler) {
        this.handler = handler;
    }

    @Override
    public Handler getHandler() {
        return handler;
    }

    @Override
    public void beginExecution() {
        this.specific(HandlerEnum.BASE);
    }

    @Override
    public void run() {
        beginExecution();

    }
}
